import service from "@/api/request.js";

/* 登录验证接口
   postdata: 登录框提交的数据
   return：Promise格式数据
*/
export const login = (postdata) => {
    return service({
            method: 'post',
            url: 'loginAPI/login',
            data: postdata
        })
        .then(res => Promise.resolve(res))
        .catch(error => Promise.reject(error));
}